<?php 

// No direct access
defined ('_JEXEC') or die();

$option = JRequest::getCmd('option');
$view = JRequest::getCmd('view');

?>

<form action='index.php' method='post' name='adminForm' id='adminForm'>
	<input type="hidden" name="option" value="<?php echo $option; ?>" />
    <input type="hidden" name="task" value="" />
    <input type="hidden" name="view" value="<?php echo $view; ?>" />
    <input type='hidden' name='boxchecked' value='0'/>
    <?php 
    echo JHtml::_('form.token');
    echo JHTML::_('behavior.modal');
     ?>
    
    <div class="clr"> </div>
    
	<div id='editcell'>
		<table class='adminlist'>
			<thead>
				<tr>
					<td>Ngày</td>
					<td>Chi tiết</td>
					<td>Số tiền còn lại</td>
				</tr>
			</thead>
			<tfoot>
				<tr>
					<td colspan='3' align="center">
						<?php echo $this->pagination->getListFooter(); ?>
					</td>
				</tr>
			</tfoot>
			<tbody>
			<?php
			$k = 0;
			$i = 0;
			foreach ($this->items as $row)
			{
			?>
				<tr class="row<?=$k?>">
					<td><?php echo $row->date; ?></td>
					<td><?php echo $row->comment; ?></td>
					<td><?php echo $row->amount; ?></td>
				</tr>
			<?php
			$k = 1 - $k;
			}
			?>
			</tbody>
		</table>
	</div>
</form>